// AStarPatchFinderView.h : interface of the CAStarPatchFinderView class
//


#pragma once
#include "GameMap.h"
#include "Picture.h"

class CAStarPatchFinderView : public CView
{
protected: // create from serialization only
	CAStarPatchFinderView();
	DECLARE_DYNCREATE(CAStarPatchFinderView)

// Attributes
public:
	CAStarPatchFinderDoc* GetDocument() const;

// Operations
public:

// Overrides
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:

// Implementation
public:
	virtual ~CAStarPatchFinderView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
public:
	void Serialize(CArchive& ar);
protected:
	CPoint offset_;
	CPoint start_point_;
	CGameMap game_map_;
	CPicture picture_;
// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
};

#ifndef _DEBUG  // debug version in AStarPatchFinderView.cpp
inline CAStarPatchFinderDoc* CAStarPatchFinderView::GetDocument() const
   { return reinterpret_cast<CAStarPatchFinderDoc*>(m_pDocument); }
#endif
